# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-update-checker
pkgver=0.17
pkgrel=0
pkgdesc="A python module that will check for package updates"
options="!check" # 4 tests fail
url="https://github.com/bboe/update_checker"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-requests"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/bboe/update_checker/archive/v$pkgver.tar.gz"
builddir="$srcdir"/update_checker-$pkgver

replaces="py-update-checker" # Backwards compatibility
provides="py-update-checker=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="36fc7c7f383d58a3abd015e93e61ce90865b4b22d246524e19573b2532af319db7503b443976bf2df0e2e572c52ab6b7178f63b522096ec1091c1d6723d8480a  py3-update-checker-0.17.tar.gz"
